package com.platform.coreentity.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Objects;

/**
 * describe:系统用户组
 *
 * @author rainly
 * @date 2019/07/23
 * @time 16:36
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "sys_usergroup", schema = "platform")
public class SysUsergroupEntity {

    @Id
    @Column(name = "guserid", nullable = false, length = 50)
    private String guserid;

    /**
     * 用户组名称
     */
    @Column(name = "gusername", nullable = false, length = 50,columnDefinition = "varchar(50) COMMENT '用户组名称'")
    private String gusername;

    @Column(name = "parent_guserid", nullable = true, length = 50,columnDefinition = "varchar(50) COMMENT '父级用户组名称'")
    private String parentGuserid;

    @Column(name = "parentids", nullable = true, length = 500,columnDefinition = "varchar(500) COMMENT '层级'")
    private String parentids;
}
